package com.zys.exercise;

import java.util.ArrayList;
import java.util.Scanner;

public class text2 {
    public static void main(String[] args) {
        ArrayList<student> list = new ArrayList<student>();
        Scanner sc = new Scanner(System.in);
        student s = new student();

        for (int i = 0; i < 3; i++) {
            System.out.println("请输入姓名");
            s.setNane(sc.next());
            list.add(s);
        }
        System.out.println(list);
    }
}
